package com.lq.educationsystem.lqsubject.service;

import com.lq.educationsystem.common.util.Result;
import com.lq.educationsystem.common.util.ResultPage;
import com.lq.educationsystem.common.vo.SubjectPageVo;
import com.lq.educationsystem.lqsubject.entiy.SubjectTb;

import java.util.List;

public interface SubjectBaseService {
    /**
     * 插入数据
     * @param subjectTb
     */
    void insetInfo(SubjectTb subjectTb);

    void deleteById(Integer subjectId);

    /**
     *
     * 更新数据
     * @param subjectTb
     */
    void updateInfo(SubjectTb subjectTb);

    /**
     * 通过id查询单个数据
     * @param subjectTb
     * @return
     */
    Result queryById(Integer subjectTb);

    ResultPage<SubjectTb> queryList(SubjectPageVo subjectPageVo);

    /**
     * 批量查询数据
     * @param subjectIdListInfo
     * @return
     */
    ResultPage<SubjectTb> queryBatchSubjectInfoBySubjectIdList(List<Integer> subjectIdListInfo);
}
